package com.example.yiqiuser.dao;

import com.example.yiqiuser.entity.Season;

import java.util.List;

/**
 * @author 诸葛龙辰
 */
public interface SeasonDao {
    /**
     * 根据参数查询对象
     * @param season
     * @return
     */
    List<Season> queryByParam(Season season);

    /**
     * 查询全部
     * @return
     */
    List<Season> queryAll();
    /**
     * 根据id查询
     */
    List<Season> queryById(Integer code);

    /**
     * 添加
     * @param season
     * @return
     */
   int add(Season season);

    /**
     * 更改
     * @param season
     * @return
     */
   int update(Season season);

    /**
     * 根据id删除
     * @param code
     * @return
     */
   int deleteById(Integer code);
}
